if __name__ == '__main__':
       chengji=input("输入成绩:")

       if  chengji >="60":
           print("合格")
       elif  "40"<=chengji<"60":
           print("补考")
       else:
             print("重修")